﻿using System.ComponentModel.DataAnnotations.Schema;

namespace NanjingbeiRailwayStation.Data.ClickHouse.Models
{
    /// <summary>
    /// 塔吊报警数据
    /// </summary>
    public class TowerCraneAlarmData
    {
        /// <summary>
        /// 
        /// </summary>
        public string imei { get; set; } = string.Empty;
        /// <summary>
        /// 
        /// </summary>
        public DateTime eventTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 报警事件名称（英文）
        /// </summary>
    
        public string eventName { get; set; } = string.Empty;


        /// <summary>
        /// 
        /// </summary>
        /// 
 
        public string deviceName { get; set; } = string.Empty;


        /// <summary>
        /// 安装位置
        /// </summary>
        
        public string installationLocation { get; set; } = string.Empty;


        /// <summary>
        /// 报警事件名称 (中文）
        /// </summary>
        public string EventDescription
        {
            get
            {
                return Core.EventTypeTable.GetEventDescription(eventName);
            }

        }



    }
}
